package com.lin.seckilllcw.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lin.seckilllcw.pojo.Order;
import com.lin.seckilllcw.pojo.User;
import com.lin.seckilllcw.vo.GoodsVo;
import com.lin.seckilllcw.vo.OrderDetailVo;

/**
 * @author ChenweiLin
 * @create 2021-07-31 23:44
 */
public interface IOrderService extends IService<Order> {
    /**
     * 秒杀
     */
    Order seckill(User user, GoodsVo goods);

    /**
     * 订单详情
     */
    OrderDetailVo detail(Long orderId);
    /*
    获取秒杀地址
     */
    String createPath(User user, Long goodsId);

    /**
     * 校验秒杀地址
     */
    boolean check(User user, Long goodsId,String path);
}
